package models

type CultureShare struct {
	PageId                  uint   `json:"pageId" gorm:"primaryKey"`
	PageName                string `json:"pageName" gorm:"not null;comment:页面名称"`
	Remark                  string `json:"remark" gorm:"not null;comment:副标题"`
	CoverUrl                string `json:"coverUrl" gorm:"not null;comment:封面"`
	Status                  int    `json:"status" gorm:"not null default: 0; comment:状态 0-下架中 1-上架中"`
	Spacial                 string `json:"spacial" gorm:"not null;comment: 专题"`
	ArtType                 int    `json:"artType" gorm:"not null; comment: 1-音乐 2-技术 3-文化"`
	Tags                    Strs   `json:"tags" gorm:"type:longtext; not null; comment: 标签"`
	Author                  string `json:"author" gorm:"not null; comment:作者"`
	CultureContentContentId uint   `json:"contentId"`
	Timestamps
	SoftDeletes
}

type CultureContent struct {
	ContentId    uint   `json:"contentId" gorm:"primaryKey"`
	Content      string `json:"content" gorm:"not null;type:longtext;comment: md内容"`
	VideoUrl     string `json:"videoUrl" gorm:"comment:视频地址"`
	CultureShare CultureShare
	Timestamps
	SoftDeletes
}
